
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.Data.SqlClient
Imports System.Text
Imports System.Data
Namespace WorkFlow.BBL
Public Class GroupOrgBBL
        Public Sub InsertGroupOrganizationMapping(ByVal GroupID As String, ByVal OrganizationID As String, ByVal UID As String, ByVal IsAll As Boolean, ByVal dbName As String)
            Dim db1 As WorkFlow.DAO.GroupOrgDAO = New WorkFlow.DAO.GroupOrgDAO(dbName)
            db1.InsertGroupOrganizationMapping(GroupID, OrganizationID, UID, IsAll)
        End Sub
        Public Sub DeleteGroupOrganizationMapping(ByVal GroupID As String, ByVal OrganizationID As String, ByVal dbName As String)
            Dim db1 As WorkFlow.DAO.GroupOrgDAO = New WorkFlow.DAO.GroupOrgDAO(dbName)
            db1.DeleteGroupOrganizationMapping(GroupID, OrganizationID)
        End Sub
        Public Function GetGroupName(ByVal GroupID As String, ByVal dbName As String) As String
            Dim db1 As WorkFlow.DAO.GroupOrgDAO = New WorkFlow.DAO.GroupOrgDAO(dbName)
            Return db1.GetGroupName(GroupID)
        End Function
        Public Function GetGroupOrgShowData(ByVal OrganizationName As String, ByVal GroupID As String, ByVal dbName As String) As DataTable
            Dim db1 As WorkFlow.DAO.GroupOrgDAO = New WorkFlow.DAO.GroupOrgDAO(dbName)
            Return db1.GetGroupOrgShowData(OrganizationName, GroupID)
        End Function
        Public Function GetGroupOrganizationMapping(ByVal GroupID As String, ByVal dbName As String) As DataTable
            Dim db1 As WorkFlow.DAO.GroupOrgDAO = New WorkFlow.DAO.GroupOrgDAO(dbName)
            Return db1.GetGroupOrganizationMapping(GroupID)
        End Function
        Public Function GetOrgData(ByVal UID As String, ByVal dbName As String) As DataTable

            Dim db1 As WorkFlow.DAO.GroupOrgDAO = New WorkFlow.DAO.GroupOrgDAO(dbName)
            Return db1.GetOrgData(UID)
        End Function
End Class
End Namespace